import request from '@/utils/request'

//应急预案操作
export function emergencyPlanHandle(data, type) {
    return request({
        url: '/business/emergencyPlan',
        method: type,
        data: data
    })
}
//应急预案列表
export function emergencyPlanList(data) {
    return request({
        url: '/business/emergencyPlan/list',
        method: 'get',
        params: data
    })
}

//应急卡操作
export function emergencyCardHandle(data, type) {
    return request({
        url: '/business/emergencyCard',
        method: type,
        data: data
    })
}
//应急卡列表
export function emergencyCardList(data) {
    return request({
        url: '/business/emergencyCard/list',
        method: 'get',
        params: data
    })
}

//应急队伍操作
export function emergencyTeamHandle(data, type) {
    return request({
        url: '/business/emergencyTeam',
        method: type,
        data: data
    })
}
//应急队伍列表
export function emergencyTeamList(data) {
    return request({
        url: '/business/emergencyTeam/list',
        method: 'get',
        params: data
    })
}